package com.indexingsystem.boss.Vo;

import java.io.Serializable;
import java.util.List;

import com.indexingsystem.boss.entity.ResourcesList;

public class MenuResouceListVo implements Serializable
{

    /**
     * 
     */
    private static final long serialVersionUID = -5739913364668373742L;
    
    private String menuId;
    
    private String menuName;
    
    private String resCategoryId;
    
    private List<ResourcesList> resourcesList;

    public String getMenuId()
    {
        return menuId;
    }

    public void setMenuId(String menuId)
    {
        this.menuId = menuId;
    }

    public String getMenuName()
    {
        return menuName;
    }

    public void setMenuName(String menuName)
    {
        this.menuName = menuName;
    }

    public String getResCategoryId()
    {
        return resCategoryId;
    }

    public void setResCategoryId(String resCategoryId)
    {
        this.resCategoryId = resCategoryId;
    }

    public List<ResourcesList> getResourcesList()
    {
        return resourcesList;
    }

    public void setResourcesList(List<ResourcesList> resourcesList)
    {
        this.resourcesList = resourcesList;
    }
    
    @Override
    public int hashCode()
    {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((menuId == null) ? 0 : menuId.hashCode());
        result = prime * result + ((menuName == null) ? 0 : menuName.hashCode());
        result = prime * result + ((resCategoryId == null) ? 0 : resCategoryId.hashCode());
        result = prime * result + ((resourcesList == null) ? 0 : resourcesList.hashCode());
        return result;
    }

    @Override
    public boolean equals(Object obj)
    {
        if (this == obj) return true;
        if (obj == null) return false;
        if (getClass() != obj.getClass()) return false;
        MenuResouceListVo other = (MenuResouceListVo)obj;
        if (menuId == null)
        {
            if (other.menuId != null) return false;
        }
        else if (!menuId.equals(other.menuId)) return false;
        if (menuName == null)
        {
            if (other.menuName != null) return false;
        }
        else if (!menuName.equals(other.menuName)) return false;
        if (resCategoryId == null)
        {
            if (other.resCategoryId != null) return false;
        }
        else if (!resCategoryId.equals(other.resCategoryId)) return false;
        if (resourcesList == null)
        {
            if (other.resourcesList != null) return false;
        }
        else if (!resourcesList.equals(other.resourcesList)) return false;
        return true;
    }

    public MenuResouceListVo()
    {
        super();
    }

    public MenuResouceListVo(String menuId, String menuName, String resCategoryId,
                             List<ResourcesList> resourcesList)
    {
        super();
        this.menuId = menuId;
        this.menuName = menuName;
        this.resCategoryId = resCategoryId;
        this.resourcesList = resourcesList;
    }

    @Override
    public String toString()
    {
        return "MenuResouceListVo [menuId=" + menuId + ", menuName=" + menuName
               + ", resCategoryId=" + resCategoryId + ", resourcesList=" + resourcesList + "]";
    }
}